package git.bankview.sl.schedule;

public class ScheduleCommon
{
	public static final int SCHD_TYPE_MANUAL = 0;
	public static final int SCHD_TYPE_D1 = 1;
	public static final int SCHD_TYPE_D5 = 5;
	public static final int SCHD_TYPE_D7 = 7;
	public static final int SCHD_TYPE_D10 = 10;
	public static final int SCHD_TYPE_D15 = 15;
	public static final int SCHD_TYPE_D30 = 30;
	public static final int SCHD_TYPE_D90 = 90;
	public static final int SCHD_TYPE_D180 = 180;
	public static final int SCHD_TYPE_D360 = 360;
	
	public static final String SCHD_DATE_FORMAT		= "yyyy-MM-dd";
	
	//public static final String PROP_ROOT_CONTEXT_PATH	= "rootContextPath";
	public static final String PROP_TASK_ID	= "taskId";
	public static final String PROP_TASK_CONTEXT_PATH	= "taskContextPath";
	
	public static String wrapDateSql(String strDate)
	{
		return "to_date('" + strDate + "', '" + SCHD_DATE_FORMAT + "')";
	}
}
